import { createApp } from 'vue'
import { createPinia } from 'pinia'

import 'ol/ol.css' // 引入ol样式，类文件按需引入
import './assets/base.css' // 引入全局样式
import './assets/mapControl.css' // 引入地图控件样式

import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(ElementPlus)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.mount('#app')
